package com.freight.order.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.freight.base.vo.UserVo;
import com.freight.order.dto.AreaPcDto;
import com.freight.order.dto.CompanyGoodsDto;
import com.freight.order.dto.CompanyVehicleDto;
import com.freight.order.dto.DriverGoodsDto;
import com.freight.order.vo.*;

import java.util.List;

/**
 * 司机空车需求详情接口
 *
 * @author huyingtai
 */
public interface IOrderMainMapperService extends IService<UserVo> {

    /**
     * 获取司机已报价货源
     * @param page
     * @param driverGoodsDto
     * @return
     */
    Page<DriverGoodsVo> getQuotedorderGoods(Page<DriverGoodsVo> page, DriverGoodsDto driverGoodsDto);

    /**
     *
     * @param goodsid
     * @return
     */
    PlatformGoodsVo getGoodsDetails(Long goodsid);

    /**
     * @param page
     * @param companyGoodsDto
     * @return
     */
    Page<CompanyGoodsVo> getCompanyGoodsInfo(Page<CompanyGoodsVo> page, CompanyGoodsDto companyGoodsDto);

    /**
     * @param page
     * @param companyGoodsDto
     * @return
     */
    Page<CompanyGoodsVo> quotationTrack(Page<CompanyGoodsVo> page, CompanyGoodsDto companyGoodsDto);


    /**
     * @param page
     * @param driverGoodsDto
     * @return
     */
    Page<DriverGoodsVo> getDriverGoodsInfo(Page<DriverGoodsVo> page, DriverGoodsDto driverGoodsDto);

    /**
     * @param page
     * @return
     */
    Page<PlatformGoodsVo> getPcDriverGoodInfoByPage(Page<DriverGoodsVo> page, AreaPcDto areaPcDto);

}